
import request from '../../utils/request';
//data：post请求中携带的数据（obj格式），params：get请求中携带的数据（就是在浏览器地址xx/xx/xx后面?XX=oo&XX=oo这部分数据，obj格式）
//管理员登陆
export default{
/*-------------------------------------------------------------岗位相关-------------*/ 
    //岗位列表
    postList: query => {
        return request({
            url: '/pet-admin/system/post/listPage',
            method: 'post',
            data: query
        });
    },
    //岗位详情
    postInfo: query => {
        return request({
            url: '/pet-admin/system/post/detail',
            method: 'post',
            data: query
        });
    },
    
    //新增岗位
    postAdd: query => {
        return request({
            url: '/pet-admin/system/post/add',
            method: 'post',
            data: query
        });
    },
    //修改岗位
    postUpdate: query => {
        return request({
            url: '/pet-admin/system/post/edit',
            method: 'post',
            data: query
        });
    },
    //删除岗位
    postDelete: query => {
        return request({
            url: '/pet-admin/system/post/delete',
            method: 'post',
            data: query
        });
    },
    
    
}
